package com.zhentao.controller;

import com.zhentao.dto.UserSearchDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ApAssociateWordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2024/6/11 15:51
 * @Author xdm
 **/
@RestController
@RequestMapping("/api/v1/associate")
public class AssociateWordsController {
    @Autowired
    private ApAssociateWordsService apAssociateWordsService;

    @PostMapping("/search")
    public ResponseResult search(@RequestBody UserSearchDto userSearchDto) {
        return apAssociateWordsService.findAssociate(userSearchDto);
    }

}
